package com.fqgj.xjd.user.client.request;


import com.fqgj.common.utils.MD5;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/2/26
 * Time: 下午5:12
 */
public class Password implements Serializable {

    private static final long serialVersionUID = -6059403737014609927L;
    private String password;

    public Password(String password) {
        //// TODO: 2017/2/27 这里要对密码做格式校验
        if (StringUtils.isNotEmpty(password)) {
            this.password = MD5.md5(password);
        }
    }

    public String getPassword() {
        return password;
    }


    public Password() {
    }

    public Password setPassword(String password) {
        this.password = password;
        return this;
    }
}
